// pages/notify/index.ts
Page({
  data: {
    detail: {},
  },
  onLoad({ id }) {
    this.getDetail(id)
  },
  async getDetail(id) {
    const res = await wx.http.get(`/announcement/${id}`)
    this.setData({
      detail: res.data,
    })
  },
})
